<?php

namespace State\Concrete;

include_once "StateAbstract.php";
include_once "StateInterface.php";
include_once "StateA.php";

use State\Context;
use State\StateAbstract;
use State\StateInterface;
class StateB extends StateAbstract implements StateInterface
{
    public function Handle(Context $context)
    {
        /** 修改状态 */
        parent::updateState($context, new StateA());
    }
}